package Demo05;

/**
 * @author 韩映晖
 * @version 1.0
 * @date 2022/2/4 12:49
 */
public class Demo01Student {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.setName("成龙");
        stu1.setAge(65);
        System.out.println("姓名："+stu1.getName()+"，年龄是："+stu1.getAge());
        System.out.println("===============");

        Student stu2 = new Student("张杰",32);
        System.out.println("姓名："+stu2.getName()+"，年龄是："+stu2.getAge());
        stu2.setAge(33);
        System.out.println("姓名："+stu2.getName()+"，年龄是："+stu2.getAge());
    }
}
